package ru.megazlo.basemvc.dao.dto;

import org.springframework.data.jpa.domain.AbstractPersistable;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;

@Entity
@Table(name = "Roles")
@EntityListeners({AuditingEntityListener.class})
public class Role extends AbstractPersistable<Long> {

	@Column(length = 40, unique = true)
	protected String name;
	@Column(length = 300)
	protected String description;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
}
